package com.ym.medical.domain.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.ym.medical.domain.entity.ConsultSummaryEntity;
import com.ym.medical.enums.CouponDiscountEnum;
import com.ym.medical.enums.CouponTypeEnum;
import com.ym.medical.enums.DoctorServiceItemEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * ComputerName:LAPTOP-6GI4HOI6
 * Author:625
 * Date: 2019-05-17
 * Time: 13:49:25
 * Comment:查询扩展工具类
 */
@Data
@ApiModel(value = "咨询总结", parent = ConsultSummaryEntity.class)
public class ConsultSummaryVo extends ConsultSummaryEntity {

    @ApiModelProperty(value = "创建时间", hidden = true)
    private Date createTime;

    @ApiModelProperty(notes = "优惠券id")
    private Long couponId;

    @ApiModelProperty(notes = "优惠券类型")
    @JsonSerialize(converter = CouponTypeEnum.Covert.class)
    private String theType;

    @ApiModelProperty(notes = "优惠券折扣比例")
    @JsonSerialize(converter = CouponDiscountEnum.Covert.class)
    private String discount;

    @ApiModelProperty(notes = "优惠券适用对象")
    @JsonSerialize(converter = DoctorServiceItemEnum.Covert.class)
    private String toSb;

}
